<?php
/**
 * Ohlasky Controller for Ohlasky Component
 * @license		GNU/GPL
 */


/**
 * Ohlasky Tydny Controller
 */
class OhlaskyControllerTydny extends OhlaskyController
{
    /**
     * constructor (registers additional tasks to methods)
     * @return void
     */
    function __construct()
    {
        parent::__construct();

        // Register Extra tasks
        $this->registerTask( 'show'  , 	'show_tyden_ohlasek' );
    }


    function show_tyden_ohlasek()
    {
        $tyden_id_int = JRequest::getVar('tyden_id_int',  0, '', 'integer');
        JRequest::setVar( 'view', 'ohlasky' );
        JRequest::setVar( 'tyden_id', $tyden_id_int );
        JRequest::setVar( 'layout', 'default'  );
        parent::display();
    }

    

}

